<%@ Page Title="Iterations" Language="C#" MasterPageFile="~/Views/Shared/Project.Master" AutoEventWireup="true" 
	Inherits="System.Web.Mvc.ViewPage<AgileBoard.Web.Controllers.ViewModel.IterationIndexView>" %>
<%@ Import Namespace="AgileBoard.Web.Controllers" %>
 

<asp:Content ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <h1>Iterations</h1>

    <% if (ViewContext.TempData[ControllerEnums.GlobalViewDataProperty.PageMessage.ToString()] != null) { %>
        <p id="pageMessage"><%= ViewContext.TempData[ControllerEnums.GlobalViewDataProperty.PageMessage.ToString()]%></p>
    <% } %>

    <div id="iterations">
        <ul id="iterationsTabPanel">
            <% foreach (var tab in ViewData.Model.Tabs) { %>
            <li><a href="<%= tab.Key %>"><%= tab.Value %></a></li>
            <%} %>
        </ul>
    </div>
    <p><%= Html.ActionLink<IterationsController>(c => c.Create(), "Create New Iteration") %></p>
</asp:Content>
